package com.codelee.soybean;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * Created by lic on 15/6/4.
 */
public interface RowProcessor {


    public <T>T toBean(ResultSet rs, Class<? extends T> clazz) throws SQLException;

    public Map toMap(ResultSet rs) throws SQLException;

    public List<Map> toMapList(ResultSet rs) throws SQLException;

    public <T>List<T> toBeanList(ResultSet rs, Class<? extends T> clazz) throws SQLException;

    public long count(ResultSet set) throws SQLException;


}
